<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('订单充电实时数据详情')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-realtimedata-edit" th:object="${bizOrderRealTimeData}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">订单号：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{oid}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">充电口：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{po}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">实时功率：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{pw}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">订单耗电量(KWH)：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{qty}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">总充电时长分钟数：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{dur}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">剩余时长分钟数：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{sur}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">已产生的费用(元)：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{amt}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">订单下单费用(元)：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="*{oa}"></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">上报时间：</label>
            <div class="col-sm-8">
                <div class="form-control-static" th:text="${#dates.format(bizOrderRealTimeData.createTime, 'yyyy-mm-dd HH:mm:ss')}"></div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    //使页面不可编辑
    function disableOcx() {
        var form = document.forms[0];
        for ( var i = 0; i < form.length; i++) {
            var element = form.elements[i];
            //部分元素可以编号 element.name 是元素自定义 name
            if (element.name != "auditEntity.auditContent"
                && element.name != "auditEntity.auditAutograph"
                && element.name != "auditEntity.auditTime"
                && element.name != "auditEntity.auditState"
                && element.name != "submitBtn"
                && element.name != "reset"
                && element.name != "id"
                && element.name != "processInstanceId"
                && element.name != "updateForm") {
                element.disabled = "true";
            }
        }
    }
    window.onload = disableOcx;//当页面加载的时候执行此函数
    var prefix = ctx + "biz/realtimedata";
</script>
</body>
</html>